<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>发现</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/reset.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/find.css" />
	</head>

	<body>
		<header class="clearfix">
			<a href="index.html" class="fl">
				<div class="Back">
					<p>Back</p>
				</div>
			</a>
			<div class="select fr">
				<select name="">
					<option value="">广州</option>
					<option value="">深圳</option>
					<option value="">珠海</option>
				</select>
			</div>
			<div class="classify">
				发现
			</div>

		</header>
		<section>
			<div class="searchBar">
				<input type="search" placeholder="请输入商品名" />
				<input type="image" name="" id="" value="" src="img/magnifier.png" />
			</div>
			<div class="button_h3">
				<h3>
				大家都在搜
			</h3>
			</div>
			<div class="button">
				<div>
					<button>寿司</button>
					<button>羽毛球</button>
					<button>火锅</button>
					<button>游泳馆</button>
				</div>
				<div>
					<button>寿司</button>
					<button>羽毛球</button>
					<button>火锅</button>
					<button>游泳馆</button>
				</div>
			</div>
			<div class="title clearfix">
				<div class="fl clearfix">
					<div class="fl"><img src="img/flame.png" /></div>
					<span>热门搜索</span>
				</div>
				<div class="fr clearfix">
					<span class="fl">更多</span>
					<img src="img/more.jpg" />
				</div>
			</div>
			<div class="cate_img clearfix">
				<div class="fl"><img src="img/cate2_03.jpg" /></div>
				<div class="fl"><img src="img/cate2_05.jpg" /></div><br />
				<div class="fl"><img src="img/cate2_08.jpg" /></div>
				<div><img src="img/cate2_10.jpg" /></div>
			</div>
			<div class="title2 clearfix">
				<div class="fl clearfix">
					<div class="fl"><img src="img/xingxing.png" /></div>
					<span>推荐搜索</span>
				</div>
				<div class="fr clearfix">
					<span class="fl">更多</span>
					<img src="img/more.jpg" />
				</div>
			</div>
			<div class="tuijian">
				<div><img src="img/tuijian_15.jpg"/></div>
				<div><img src="img/tuijian_17.jpg"/></div>
				<div><img src="img/tuijian_20.jpg"/></div>
			</div>
		</section>
		<footer class="clearfix">
			<a href="index.html">
				<div class="home fl">
					<div><img src="img/home1.png" /></div>
					<p>首页</p>
				</div>
			</a>
			<a href="classify.html">
				<div class="classify fl">
					<div><img src="img/classify.jpg" /></div>
					<p>分类</p>
				</div>
			</a>
			<a href="find.html">
				<div class="find fl">
					<div><img src="img/find_25.jpg" />
					</div>
					<p>发现</p>
				</div>
			</a>
			<a href="my.html">
				<div class="my fr">
					<div><img src="img/my_29.jpg" /></div>
					<p>我的</p>
				</div>
			</a>

		</footer>
		<script>
			document.body.style.height = window.innerHeight + "px";

			/*动态改变根元素字体大小*/
			function recalc() {
				//获取客户端宽度
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				// 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
				document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
			}

			function initRecalc() {
				recalc();
				// if(浏览器支持横竖屏切换的事件){横竖屏事件}else{ resize事件 }
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>
	</body>

</html>